<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>RealBlog | 自己的博客</title>
<link rel="stylesheet" href="/admin/style/dd.css">
<link rel="stylesheet" href="/admin/style/login.css">
<link rel="stylesheet" href="/admin/style/login-style.css">
<script type="text/javascript" src="/admin/script/crypto-min.js"></script>
<script type="text/javascript" src="/admin/script/crypto-sha1.js"></script>
<script type="text/javascript" src="/admin/script/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
function login()
{
    // 取用户名和密码，一次哈希
    var source = $('#username').val() + $('#password').val();
    var bytes = Crypto.SHA1(source, { asBytes: true });
    var hash = Crypto.util.bytesToHex(bytes);

    // 取时间，二次哈希
    var now = new Date();
    var dateStr = now.getYear() + '/' + now.getMonth() + '/' + now.getDay();

    source = hash + dateStr;
    bytes = Crypto.SHA1(source, { asBytes: true });
    hash = Crypto.util.bytesToHex(bytes);

    $('#date').val(dateStr);
    $('#passwordHash').val(hash);

    document.forms[0].submit();
}
</script>
</head>

<body>
<div id="startpage" class="clearfix">
<div id="startpage-wrap">
<h1 id="logo-startpage">RealBlog</h1>
<div id="login-wrap">
<form id="login-form" class="clearfix" method="post">
<ul class="list clearfix">
<li class="li clearfix">
    <div class="item-title">博客地址</div>
    <div class="item">
        <input type="text" class="ui-text skin-text-willwhite" value="{{ host }}" readonly="readonly">
    </div>
    <div class="item-des">主机地址，如www.chenyan.fr</div>
</li>
<li class="li clearfix">
    <div class="item-title">博客名称</div>
    <div class="item">
        <input type="text" class="ui-text skin-text-willwhite" value="{{ name }}" readonly="readonly">
    </div>
    <div class="item-des">仅限字母、数字和下划线</div>
</li>
<li class="li clearfix">
    <div class="item-title">所有管理员</div>
    <div class="item">
        <input type="text" name="blog-nickname" class="ui-text skin-text-willwhite" value="{{ admins }}"  readonly="readonly">
    </div>
    <div class="item-des">仅限字母、数字和下划线</div>
</li>
<li class="li clearfix normal" style="height: 15px; line-height: 15px;">
    <div class="item-title" style="line-height: 15px;">&nbsp;</div>
    <div class="item">如有错误，请到config/server.py中修改</div>
</li>
<li class="li clearfix normal">
    <div class="item-title">&nbsp;</div>

    <div class="item">
        <label>
            <input type="checkbox" name="is-blog-info-checked">以上信息确认无误，准备安装
        </label>
    </div>
</li>
<li class="li clearfix normal">
    <input type="submit" class="input-button" style="float: right; margin-right: 200px;" value="安装" />
</li>
</ul>
</form>
</div>
<div id="footer">

</div>
</div>
</div>
</body>
</html>